package com.hysf.ioc.pro1.config;

import com.hysf.ioc.pro1.pojo.Product;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig2 {
	@Bean(value = "apple2")
	public Product apple() {
		return new Product(2, "apple", 10.0);
	}
}
